Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment main-dxp with legacy/5.X #23

Closed
wants to merge 23 commits into from
Closed

Conversation

plozinski
Copy link
Collaborator

Summary

Motivation

Changes

Test plan

plozinski added 15 commits June 12, 2024 12:23
Fix for tvOS native audio menu language selector

commit:

a42240d
Adding Dolby Atmos workaround.

commit:

3030ddd

comment:

- Add and remove spatial audio remote command handler
- Whenever we play video, we must add this event handler that returns a success status for all remote command events
- Whenever we stop video or destroy the player, remove this event handler
- This is a workaround to get Dolby Atmos working on iOS 15 and above
It seems, that if we have several Video elements and if we remove handler, spatial sound will stop working.

commit:

b1fa382

comment:

How to reproduce:
Two videos. First with autoplay. Second paused with controls.

Also handler adding moved from play/pause method to setSrc, because if we show paused video with native controls - our play method is not called.
Revert iOS 15 MPRemoteCommandCenter workaround

commit:

ac1114e
feat: put back dolby atmos workaround work

commit:

c58d9dd
Send current time request and handle command result on iOS.

commit:

dbba295
Attempt to sync two videos.

commit:

300794d
Fix autoplay & playing after buffering

commit:

8a15097
Send on played tracks change

commit:

69cd4f0

comment:

adding files of M3U8Kit it is part of work from: Feature/xhub 5315 (#14) (commit: a6823bb)
Add podspec with m3u8 parser

commit: b2d2ecf
Add proper audio parsing

commit:

2c55b87
Removed unused method

commit:

ce29859
Fix displaying string uri

commit:

320985f
Feature/xhub 5315 (#14)

commit:

a6823bb

comment:

* Add checking values statements

* Add video codec

* Add library to code itself to fix problem with spaces in uri
XHUB-5327 - Expose channel (HLS) and Dolby SupplementalProperty (DASH) values from currently played resource to ReactNative (#17)

commit:

675207f

comment:

* Add license text

* Add channels
@romansavka-mq
Copy link
Member

romansavka-mq commented Jun 14, 2024

  • Do poprawy napewno failujące check'i GithubActions. Nie budują się samplowe aplikacje iOS'owe.
  • Wyszła dziwna nazwa branch'a main-dxp+legacy/5.X, / wyszedł jako folder. Można zmienić na ios/dxp-5.x-alignment
  • Do dodania opis zmian w CHANGELOG
  • Do dodania dokumentacja nowych property/method (np. principalVideo/peripheralVideo)

Po zminie branch'a i utworzeniu nowego PR'a zacznę dodawać uwagi do plków.

@@ -57,12 +59,17 @@ @interface RCT_EXTERN_MODULE (RCTVideoManager, RCTViewManager)
RCT_EXPORT_VIEW_PROPERTY(onPlaybackStalled, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onPlaybackResume, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onPlaybackRateChange, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onPlayedTracksChange, RCTDirectEventBlock);
Copy link
Member

@romansavka-mq romansavka-mq Jun 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Czy jesteśmy w stanie dostosować to do implementacji open-source, gdzie są trzy callbacki

https://thewidlarzgroup.github.io/react-native-video/component/events#onaudiotracks
https://thewidlarzgroup.github.io/react-native-video/component/events#onvideotracks
https://thewidlarzgroup.github.io/react-native-video/component/events#ontexttracks

Co ważne onaudiotracks / ontexttracks są zaimplementowane dla iOS według dokumentacji open-source

?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tak spróbuję

RCT_EXPORT_VIEW_PROPERTY(onVolumeChange, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onVideoPlaybackStateChanged, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onVideoExternalPlaybackChange, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onGetLicense, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onPictureInPictureStatusChanged, RCTDirectEventBlock);
RCT_EXPORT_VIEW_PROPERTY(onRestoreUserInterfaceForPictureInPictureStop, RCTDirectEventBlock);

RCT_EXPORT_VIEW_PROPERTY(onCommandResult, RCTBubblingEventBlock);
RCT_EXTERN_METHOD(getCurrentTime : (nonnull NSNumber*)rectTag reactTag : (nonnull NSNumber*)commandId commandId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wydaje się że możemy usunąć tą implementacje bo jest zaimplementowane w open-source

https://thewidlarzgroup.github.io/react-native-video/component/methods#getcurrentposition

Musimy tylko zaktualizować main-dxp zmianami które wyszły w 6.2.0 open-source. Zrobimy to po zakończeniu tego wyrównania z 5.X

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okej, usunę ten commit

@plozinski plozinski force-pushed the main-dxp+legacy/5.X branch 3 times, most recently from a70ea47 to ea5f907 Compare June 14, 2024 17:57
@plozinski plozinski force-pushed the main-dxp+legacy/5.X branch from ea5f907 to 93ad73b Compare June 14, 2024 18:34
@plozinski plozinski force-pushed the main-dxp+legacy/5.X branch from 93ad73b to 6cec1c7 Compare June 14, 2024 18:37
@plozinski plozinski closed this Jun 16, 2024
@plozinski plozinski deleted the main-dxp+legacy/5.X branch June 16, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants